<template>
    <div class="user-action">
        <div v-if="article.views" class="views">阅读{{article.views.length}}</div>
        <div class="body row">
            <div class="btn row" @click="collectArticle">
                <div class="icon">
                    <img
                        src="https://7769-winfyho-cloud-0gfbcdsg0e062644-1301825810.tcb.qcloud.la/cloudbase-cms/upload/2021-05-05/t0jjao6fpzzmcszufyyc9uqx3zy8k5ao_.png"
                    />
                </div>
                <div class="link">收藏</div>
            </div>

            <div class="btn btn-share row" @click="shareArticle">
                <div class="icon">
                    <img
                        src="https://7769-winfyho-cloud-0gfbcdsg0e062644-1301825810.tcb.qcloud.la/cloudbase-cms/upload/2021-05-05/5mdpp8kvl5jhqy7l4e7nyj2c1ybl1jtv_.png"
                    />
                </div>
                <div class="link">分享</div>
            </div>
        </div>
    </div>
</template>

<script>
import mixinArticle from "../../mixin/article";
export default {
    mixins: [mixinArticle],
    props: {
        article: Object
    },
    data() {
        return {};
    },
    created() {},
    methods: {}
};
</script>


<style lang="less" scoped>
.user-action {
    padding: 50px 30px 30px 30px;
    margin-bottom: 30px;
    background: #fff;
    .views {
        margin-bottom: 30px;
        color: #aaa;
        font-size: 26px;
    }
    .body {
        width: 100%;

        .btn {
            align-items: center;
            margin-right: 40px;
            .icon {
                display: flex;
                align-items: center;
                width: 35px;
                margin-right: 5px;
            }
        }
    }
}
</style>